using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Text;

namespace Lookstone.Data.SqlClient
{
	public abstract class SqlGuidKey : SqlKeyBase<Guid>
	{
		#region /***** Constructors *****/
		public SqlGuidKey()
			: base()
		{
			// Default to a new Guid value for the record
			InternalID = Guid.NewGuid();
		}

		public SqlGuidKey(RowReader reader)
			: base(reader) { }
		#endregion /***** Constructors *****/

		#region //****** Methods ******//
		protected override void StoreSaveInfo(RowReader reader)
		{
			InternalID = reader.GetField<Guid>(0);
		}
		#endregion //****** Methods ******//
	}
}
